<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/WEB-INF/tld/framework.tld" prefix="mayi"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>DeathGhost-用户中心</title>
<meta name="keywords"
	content="DeathGhost,DeathGhost.cn,web前端设,移动WebApp开发" />
<meta name="description" content="DeathGhost.cn::H5 WEB前端设计开发!" />
<meta name="author" content="DeathGhost" />
<link href="style/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/public.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jqpublic.js"></script>
<!--
Author: DeathGhost
Author URI: http://www.deathghost.cn
-->
</head>
<body>
	<section class="Topmenubg">
	<div class="Topnav">
		<div class="LeftNav">
			<a href="<%=path%>/login/toRegister">注册</a>/<a
				href="${pageContext.request.contextPath }/login/login">登录</a>&nbsp;&nbsp;<a
				href="<%=path%>/shop/selectShop">首页</a>
		</div>
	</div>
	</section>
	<nav class="menu_bg">
	<ul class="menu">
		<li><a href="index.html">首页</a></li>
		<li><a href="list.html">订餐</a></li>
		<li><a href="category.html">积分商城</a></li>
		<li><a href="article_read.html">关于我们</a></li>
	</ul>
	</nav>
	</header>
	<!--Start content-->
	<section class="Psection MT20"> <nav
		class="U-nav Font14 FontW">
	<ul>
		<li><i></i><a href="<%=path %>/user/toUser">用户中心首页</a></li>
		<li><i></i><a href="user_orderlist.html">我的订单</a></li>
		<li><i></i><a href="user_address.html">收货地址</a></li>
		<li><i></i><a href="<%=path%>/user/selectCommentByUserId">我的留言</a></li>
		<li><i></i><a href="user_coupon.html">我的优惠券</a></li>
		<li><i></i><a href="user_favorites.html">我的收藏</a></li>
		<li><i></i><a href="<%=path%>/user/selectUserMag">账户管理</a></li>
		<li><i></i><a href="<%=path%>/login/loginOut">安全退出</a></li>
	</ul>
	</nav> <article class="U-article Overflow"> <!--user message--> <section
		class="Mymessage Overflow"> <span
		class="Mmtitle Block Font14 FontW Lineheight35">我的留言</span> <!-- <p class="FontW">
		<time>2014-09-22 11:09</time>
		这是一个提问，网站是什么？
	</p>
	<p class="CorRed">
		<time>2014-09-22 13:09</time>
		<span>重庆川菜馆回复：</span>这这里回答，详情登录 http://www.deathghost.cn！
	</p> -->
	<table width="90%" border="0" align="center" cellpadding="0"
		cellspacing="0" class="table3">
		<tr align="center">
			<td width="138" height="51" class="FontW">序号</td>
			<td width="162" class="FontW">留言时间</td>
			<td width="116" class="FontW">留言内容</td>
		</tr>
		<c:forEach var="comment" items="${page.date}" varStatus="status">
			<tr align="center">
				<td class="FontW">${status.count}</td>
				<td class="FontW">${comment.commentTime}</td>
				<td class="CorRed">${comment.commentText}</td>
				<!-- <td><a href="#">删除</a></td> -->
			</tr>
		</c:forEach>
	</table>
	<div align="center">
		<p>
			<mayi:page
				url="${pageContext.request.contextPath }/user/selectCommentByUserId?curPage"
				totalPage="${page.totalPage }" curPage="${page.curPage }"
				rows="${page.rows }"></mayi:page>
		</p>

		<%-- <p>
			<c:if test="${page.curPage == 1}">首页</c:if>
			<c:if test="${page.curPage > 1}">
				<a href="javascript:jump(1)">首页</a>
			</c:if>
			<c:if test="${page.curPage == 1 }">上一页</c:if>
			<c:if test="${page.curPage > 1 }">
				<a href="javascript:jump(${page.curPage-1 })">上一页</a>
			</c:if>
			<c:if test="${page.curPage == page.totalPage }">下一页</c:if>
			<c:if test="${page.curPage < page.totalPage }">
				<a href="javascript:jump(${page.curPage+1 })">下一页</a>
			</c:if>
			<c:if test="${page.curPage == page.totalPage }">末页</c:if>
			<c:if test="${page.curPage < page.totalPage }">
				<a href="javascript:jump(${page.totalPage })">末页</a>
			</c:if>
			共${page.totalPage }页 当前页${page.curPage } 总共${page.rows }条数据
		</p> --%>
	</div>
	<!-- <script type="text/javascript">
		//分页查询
		function jump(curPage) {
			$("#curPage").val(curPage);//修改隐藏域的页码
			//还可以进行 form的 提交的url
			//$("#form1").action = "${pageContext.request.contextPath }/user";
			//提交form表单
			$("#form1").submit();
		}
	</script> --> </section> </article> </section>
</body>
</html>
